readme file for replication materials for:
"Insuring Against Past Perils: The Politics of Post-Currency Crisis Foreign Exchange Reserve Accumulation"
Political Science & Research Methods
Liam F. McGrath
liam.mcgrath@ir.gess.ethz.ch

The replication materials are ordered in the following folders (within replication_materials.zip):

- code: all (Stata) code necessary to replicate the analysis and results in the paper and supplementary materials, and (R) code for recreating the exact graphs used in the paper.
- data: the data (in .dta and .csv format) used for the statistical analysis in this paper
- output: (cleaned) output from the calculation of marginal effects in stata, and the stata output of dynamic effects.


Below I provide a brief description of each file, going folder by folder:

# /code/

figures.R: R code to exactly recreate the marginal effect plots in the main text. (Note: within main_analysis.do you can also plot the marginal effects)

main_analysis.do: Stata do file to run the statistical analysis presented in the main text. Also creates the non-clean files containing the marginal effects presented in the main paper, that are stored in the /output/ folder.

robustness.do: Stata do file to run the statistical analysis and graphs presented in the supplementary materials. Also creates the files containing the dynamic effects that are stored in the /output/ folder.

# /data/

reserves_data.dta: The data set used for the statistical analysis (Stata 12 .dta file).
reserves_data.csv: The data set used for the statistical analysis (.csv file).


# /output/

h2_polit11.tab: Marginal effects of major cabinet changes (for hypothesis 2, figure 2 main text)
h2_polit12.tab: Marginal effects of change in effective executive (for hypothesis 2, figure 2 main text)
h3_polit11.tab: Marginal effects of major cabinet changes (for hypothesis 3, figure 3 main text)
h3_polit12.tab: Marginal effects of change in effective executive (for hypothesis 3, figure 3 main text)
h4_polit11_h.tab: Marginal effects of major cabinet changes (for hypothesis 4, high pre-crisis reserves, figure 4 main text)
h4_polit11_l.tab: Marginal effects of major cabinet changes (for hypothesis 4, low pre-crisis reserves, figure 4 main text)
h4_polit12_h.tab: Marginal effects of change in effective executive (for hypothesis 4, high pre-crisis reserves, figure 4 main text)
h4_polit12_l.tab: Marginal effects of change in effective executive (for hypothesis 4, low pre-crisis reserves, figure 4 main text)
h5_polit11.tab: Marginal effects of major cabinet changes (for hypothesis 5, figure 5 main text)
h5_polit12.tab: Marginal effects of change in effective executive (for hypothesis 5, figure 5 main text)
h6_polit11.tab: Marginal effects of major cabinet changes (for hypothesis 6, figure 6 main text)
h6_polit12.tab: Marginal effects of change in effective executive (for hypothesis 6, figure 6 main text)
polit11_dynsim.dta: Dynamic effect of major cabinet changes (figure 10 supplementary materials). Generated using the .ado dynsim
polit12_dynsim.dta: Dynamic effect of change in effective executive (figure 10 supplementary materials). Generated using the .ado dynsim